import cron from "node-cron"
import DataService from "../service/Admin/Data.service";


// 每秒执行一次
export const task = cron.schedule('* * 0 * * *', () => {
   DataService.addRunDate()
}, {
  timezone: "Asia/Shanghai"
});
setTimeout(() => {
  DataService.addRunDate()
}, 10 * 1000);
export default task;